import 'package:get/get.dart';
import 'package:signage/l10n/l10n.dart';

class TextShowController extends GetxController {
  //TODO: Implement TextShowController

  final title = ''.obs;
  final text = ''.obs;
  @override
  void onInit() {
    super.onInit();
    final l10n = AppLocalizations.of(Get.context!)!;
    
    title.value = Get.arguments['title'];
    if (title.value == l10n.translate('user_agreement_title')) {
      text.value = l10n.translate('user_agreement_content');
    } else if (title.value == l10n.translate('privacy_policy_title')) {
      text.value = l10n.translate('privacy_policy_content');
    }
  }

  @override
  void onReady() {
    super.onReady();
  }

  @override
  void onClose() {
    super.onClose();
  }
}
